<?php
    $reponse = array(
        "error" => 1,
        "msg" => sprintf("%s:%d %s", end(explode("/", $e["file"])), $e["line"], $e["message"])
    );
    echo json_encode($reponse);
?>